import request from '@/utils/request'

// 查询考勤基数列表
export function listAttendBase(query) {
  return request({
    url: '/hr/attendBase/list',
    method: 'get',
    params: query
  })
}

// 查询考勤基数详细
export function getAttendBase(id) {
  return request({
    url: '/hr/attendBase/' + id,
    method: 'get'
  })
}

// 新增考勤基数
export function addAttendBase(data) {
  return request({
    url: '/hr/attendBase',
    method: 'post',
    data: data
  })
}

// 修改考勤基数
export function updateAttendBase(data) {
  return request({
    url: '/hr/attendBase',
    method: 'put',
    data: data
  })
}

// 删除考勤基数
export function delAttendBase(id) {
  return request({
    url: '/hr/attendBase/' + id,
    method: 'delete'
  })
}
